<?php 
session_start();
include("../Core/Core_Class/Oauth.class.php");
	if($_COOKIE["qqlogin_token"]||$_SESSION['social_uid']&&$_SESSION['access_token']){
	$result=array(
		'code'=>1,
		'msg'=>$_SESSION['nickname'].',登录成功',
		'social_uid'=>$_SESSION['social_uid'],
		'access_token'=>$_SESSION['access_token'],
		'gender'=>$_SESSION['gender'],
		'nickname'=>$_SESSION['nickname'],
		'figureurl_qq_1'=>$_SESSION['figureurl_qq_1'],
		'figureurl_qq_2'=>$_SESSION['figureurl_qq_2'],
		'vip'=>($_SESSION['vip'] ? '黄钻用户' : '非黄钻用户'),
		'level'=>($_SESSION['level'] ? $level : '非黄钻用户'),
		'is_yellow_year_vip'=>($_SESSION['is_yellow_year_vip'] ? '是年费' : '非年费')
	);
	}else{
		$result=array('code'=>-1,'msg'=>'目前未登陆,请先登陆');
	}
exit(json_encode($result));